<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Web 设计</title>
        <link rel="shortcut icon" href="/mylogo/logo_k_icon_72.ico" type="image/x-icon" />
        <script type="text/javascript">
            function upperCase(x)
            {
                var y=document.getElementById(x).value
                document.getElementById(x).value=y.toUpperCase()
            }
        </script>
    </head>
    <body>
    输入您的姓名：
    <input type="text" id="fname" onchange="upperCase(this.id)" />
    </body>
</html> 

